package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * banner
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2021-10-13 18:05:03
 */
@Data
@TableName("jx_banner")
public class JxBannerEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * banner 的id
	 */
	@TableId
	private Long id;
	/**
	 * 当前图片地址
	 */
	@NotBlank(message="请上传图片", groups = {AddGroup.class, UpdateGroup.class})
	private String imgUrl;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 点击允许跳转地址
	 */
	private String linkUrl;
	/**
	 * 排序
	 */
	@NotNull(message="排序不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer orderNum;


	/***
	 * 分类
	 */
	@NotNull(message="分类不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String type;

}
